package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.support.ConfigurableConversionService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/06/23 09:46
 */
@RestController
public class HelloController {

    @Autowired
    ConfigurableConversionService conversionService;

    @RequestMapping("hello")
    public String hello() {
        return "hello";
    }


    // localhost:8080/user/register2?user=songge
    @RequestMapping("user/register2")
    public BaseRespVo register2(User user) {
        return BaseRespVo.ok();
    }
}
